/**
 * Created by Heiliuer on 2019/4/7 0007.
 */
import React from 'react'
import './index.css'

class Box extends React.Component {

    constructor(...args) {
        super(...args)
        this.state = {
        }
    }

    componentDidMount() {
    }

    componentWillReceiveProps(nextProps, nextContext) {
    }

    render() {
        const {title,children,className} = this.props
        return <div className={'box ' + className}>
            {title&&<h3 className="box-title">{title}</h3>}
            <div className="box-body clearfix">
                {children}
            </div>
        </div>
    }
}

export default Box